home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / grphwiz.dxr / 00169_table cell.ls < prev    next >
Encoding:
Text File  |  2000-01-14  |  862 b   |  31 lines

  1. global gGraphWizard, gGraph
  2.  
  3. on keyDown
  4.   if charToNum(the key) = 28 then
  5.     moveLeft(getTable(gGraphWizard))
  6.   else
  7.     if (the key = TAB) or (charToNum(the key) = 29) then
  8.       MoveRight(getTable(gGraphWizard))
  9.     else
  10.       if charToNum(the key) = 30 then
  11.         moveUp(getTable(gGraphWizard))
  12.       else
  13.         if (the key = RETURN) or (charToNum(the key) = 31) then
  14.           moveDown(getTable(gGraphWizard))
  15.         else
  16.           charCount = member("table cell", 1).text.length
  17.           textIsSelected = selection() <> EMPTY
  18.           cellNotFull = charCount < 8
  19.           if textIsSelected or cellNotFull or (the key = BACKSPACE) then
  20.             setaProp(gGraph, #pIsDirty, 1)
  21.             setaProp(gGraph, #pIsConsistant, 0)
  22.             pass()
  23.           else
  24.             beep()
  25.           end if
  26.         end if
  27.       end if
  28.     end if
  29.   end if
  30. end
  31.